import {Singer} from "@/ts.d/classes/Singer";

/**
 * 专辑封面类
 * title: 专辑名
 * mid: 专辑标识
 * singer: 专辑歌手
 * singerName: 歌手
 * cover: 封面图
 */
export class AlbumItem {
  readonly title: string;
  readonly name: string;
  readonly mid: number;
  readonly singer: Array<Singer>|undefined;
  readonly singerName: string;
  readonly listenCount: number
  readonly cover: string
  readonly type = "album"



  constructor(title: string, mid: number, singer: Array<Singer> | undefined, singerName: string, listenCount: number) {
    this.title = title;
    this.mid = mid;
    this.singer = singer;
    this.singerName = singerName;
    this.listenCount = listenCount;
    this.cover = `https://y.gtimg.cn/music/photo_new/T002R300x300M000${this.mid}.jpg`
    this.name = this.title
  }
}
